package com.damuzee.system.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.mybatis.sql.page.Page;
import org.springframework.stereotype.Service;

import com.damuzee.system.system.domain.PermUser;
import com.damuzee.system.system.persistence.PermUserMapper;
import com.damuzee.system.system.service.PermUserService;

@Service 
public class  PermUserServiceImpl implements PermUserService{

	public Page< PermUser> getPermUserList(Page<  PermUser> page,   PermUser  bean) {
		return mapper.selectPageByWhere(page,   bean);
	}

	public void savePermUser( PermUser bean) {
		 
		mapper.insert(bean);
	}
	
 
	public List<PermUser> getPermUserList( PermUser bean) {
		 
		return mapper.selectList(bean);
	}

	 
	public void updatePermUser( PermUser bean) {
		mapper.update(bean); 
	}

 
	@Resource
	private  PermUserMapper mapper ;
}
